<?php 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Galeria de Fotos DP Sgo del Estero</title>
<link rel="stylesheet" type="text/css" href="css/e2photo_black.css" title="black" />
<?php

	if($_REQUEST['album'] == ""){
		echo '<font color="white">Album no encontrado</a><br>';
		echo '<a href="../index.php?show=galeriaFoto"><font color="white">Volver a Galeria de Fotos</font></a>';
	}
	else{
	$gallerypath="uploader/images/".$_REQUEST['album'];
	$thumbpath="uploader/thumbs/".$_REQUEST['album'];;
	$transitionspeed="500";
	$fadespeed="300";
	require_once "getfolders.php";
	}
?>
<style type="text/css">
body{text-align:center;font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;}
img{border:none;}
</style>

<script type="text/javascript" src="js/mootools.v1.11.js"></script>
<script type="text/javascript">
var transspeed=<?php echo $transitionspeed;?>;
var fadespeed=<?php echo $fadespeed;?>;
</script>
<script type="text/javascript" src="js/e2photo.js"></script>
<script type="text/javascript" src="js/styleswitcher.js"></script>
<script type="text/JavaScript">	
<?php getImages($gallerypath, 'tempgallery'); ?>
var firstimagewidth=currentwidth;
var firstimageheight=currentheight;
</script>
<script type="text/javascript" src="js/e2photo2.js"></script>
<script type="text/javascript">

</script>

</head>

<body>

<div>

<div class="e2_photo_gallery">
  <div class="hd"><div class="c"></div></div>
 <div class="bd">
  <div class="c">
   <div class="s">

    <!-- Gallery -->

		  <div id="gallery" align="center">
		  <!--Main Image Here-->
		  <div id="main_image_wrapper">
			
			<div id="iptc_btn"></a></div>
			  <?php getfirstimage($gallerypath, "tempgallery"); ?>
			 <div id="pn_overlay">
				<a href='javascript:previmage(current_imgid);' id='prev' class=".toolTip" tooltitle="Previous Image" ></a>
				<a href='javascript:nextimage(current_imgid);' id='next' tooltitle="Next Image"></a>			 </div>
		  </div>
		  <div align="center" class="spacing"> </div>
		  <!--End Main Image-->
		  <div id="thumbdisplay">
			  <div align="center" id="photocount"> <script type="text/javascript">document.write("1 de "+tempgallery.length+" Fotos");</script> </div>
			
			  <div class="clear"></div>
		  </div>
		  <div align="center" class="spacing"> </div>
		  <div id="thumbhide">
		   <div id="thumbbox">
			<div id="thumb_container">
			  <div id="thumbgall">
				<div id="thumbs">
				  <div id="widthbox"><?php getthumbnailimages($gallerypath, 'tempgallery', $thumbpath); ?></div>
				</div>
			  </div>
			</div>
			<div id="back">
			  <script type="text/javascript">if(thumbnailnum>maxthumbvisible){document.write("<div id='leftmore'><ul><li><a href=\"javascript:checkbutton(addposition('minus'));movethumbs('plus');\"><img src='rsrc/buttonblank.gif' width='15' height='115' border='0' /></a></li></ul></div>");}</script>
			</div>
			<div id="more">
			  <script type="text/javascript">if(thumbnailnum>maxthumbvisible){document.write("<div id='rightmore'><ul><li><a href=\"javascript:checkbutton(addposition('plus'));movethumbs('minus');\"><img src='rsrc/buttonblank.gif' width='15' height='115' border='0' /></a></li></ul></div>");}</script>
			</div>
			</div>
		  </div>
			<div align="center" class="spacing"> </div>
			<div id="imgtitle"></div>	
		</div>

    <!-- end Gallery -->

   </div>
  </div>
 </div>
 <div class="ft"><div class="c"></div></div>
	<div id="e2link">
		<a href="../index.php?show=galeria">Volver a Galeria de Fotos</a></div>
</div>
</div>
</body>
</html>
